package com.baizhi.exception;

import lombok.Getter;

@Getter
public class EnumException extends RuntimeException {

    Integer code; //响应码
    String message; //异常消息

    public EnumException(ExceptionAssert e) {
        this.code = e.getCode();
        this.message = e.getMessage();
    }


}
